package com.example.anni.zhuzhoujia.bogege;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

import com.example.anni.zhuzhoujia.R;

/**
 * Created by 张钧博 on 2016/6/4.
 */
public class HotHotFragment extends Fragment {
    private ImageView ivImage;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        return inflater.inflate(R.layout.hot_hot_fragment, null);
    }

    @Override
    public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
        ivImage = (ImageView) view.findViewById(R.id.iv_image);
        int image = getArguments().getInt("image");
        ivImage.setImageResource(image);
    }
}
